package ccgl.com.model;

import java.util.Date;
/**
 * 商品对象
 * @author Administrator
 *
 */
public class MSp {
	private String id;
	private String xh;// 型号
	private String splx;// 类型
	private String mc;// 名称
	private int sl;// 数量
	private String cj;// 厂家
	private float jj;// 进价
	private float pfj;// 批发价
	private float lsj;// 零售价
	private String userid; //用户id
	private Date lrsj;// 录入时间

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getXh() {
		return xh;
	}

	public void setXh(String xh) {
		this.xh = xh;
	}

	public String getSplx() {
		return splx;
	}

	public void setSplx(String splx) {
		this.splx = splx;
	}

	public String getMc() {
		return mc;
	}

	public void setMc(String mc) {
		this.mc = mc;
	}

	public int getSl() {
		return sl;
	}

	public void setSl(int sl) {
		this.sl = sl;
	}

	public String getCj() {
		return cj;
	}

	public void setCj(String cj) {
		this.cj = cj;
	}

	public float getJj() {
		return jj;
	}

	public void setJj(float jj) {
		this.jj = jj;
	}

	public float getPfj() {
		return pfj;
	}

	public void setPfj(float pfj) {
		this.pfj = pfj;
	}

	public float getLsj() {
		return lsj;
	}

	public void setLsj(float lsj) {
		this.lsj = lsj;
	}

	public Date getLrsj() {
		return lrsj;
	}

	public void setLrsj(Date lrsj) {
		this.lrsj = lrsj;
	}
	
	public Object[] getPropertiesArray() {
		Object[] array = new Object[11];
		array[0] = id;
		array[1] = xh;
		array[2] = splx;
		array[3] = mc;
		array[4] = sl;
		array[5] = cj;
		array[6] = jj;
		array[7] = pfj;
		array[8] = lsj;
		array[9] = userid;
		array[10] = lrsj;
		return array ;
	}
	
	public Object[] getPropertiesUpdateArray() {
		Object[] array = new Object[9];
		array[0] = xh;
		array[1] = splx;
		array[2] = mc;
		array[3] = sl;
		array[4] = cj;
		array[5] = jj;
		array[6] = pfj;
		array[7] = lsj;
		array[8] = lrsj;
		return array ;
	}

	@Override
	public String toString() {
		return "MSp [id=" + id + ", xh=" + xh + ", splx=" + splx + ", mc=" + mc
				+ ", sl=" + sl + ", cj=" + cj + ", jj=" + jj + ", pfj=" + pfj
				+ ", lsj=" + lsj + ", lrsj=" + lrsj + "]";
	}

}
